// 导入createStore
import {createStore, combineReducers} from 'redux'
// // 导入 reducer
// import  {rootReducer} from './reducers/'
// 导入 userReducer
import {userReducer} from './reducers/userReducer'
// 导入 proReducer
import {proReducer} from './reducers/proReducer'
// 合并子reducer
const reducer = combineReducers({
    user: userReducer,
    pro: proReducer
})
// 构建 store,把整合多个子reducer的 reducer 传入到里面
export default createStore(reducer)